package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_douluodalu_score_change", desc = "斗罗/封神积分变更日志", autoSave = true, uploadCk = true, isCross = true)
public class LogDouLuoDaLuScoreChange extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "积分id")
    private int scoreId;

    @FieldTypeAnnotation(desc = "1:获得；0：失去")
    private int type;

    @FieldTypeAnnotation(desc = "数量")
    private long num;

    @FieldTypeAnnotation(desc = "当前数量")
    private long nowNum;

    public LogDouLuoDaLuScoreChange(int activityId, long userId, int scoreId, int type, long num, long nowNum) {
        this.activityId = activityId;
        this.userId = userId;
        this.scoreId = scoreId;
        this.type = type;
        this.num = num;
        this.nowNum = nowNum;
    }

    public long getUserId() {
        return userId;
    }

}
